package collect

import "time"

// FormatLogData 格式化发送信息
func FormatLogData(path, data string, time time.Time) (res *SendLogInfo) {
	res = &SendLogInfo{
		Timestamp: time,
		Log: struct {
			Offset int `json:"offset"`
			File   struct {
				Path string `json:"path"`
			} `json:"file"`
		}{File: struct {
			Path string `json:"path"`
		}{
			path,
		},
		},
		Message: data,
	}
	return
}
